package cn.seaboot.admin.excel.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * POJO
 * Excel内容 [t_excel_row]
 *
 * @author ChenSS on 2018/6/20.
 */
@Schema(description = "Excel内容 [t_excel_row] 实体类")
public class ExcelRow implements Serializable {

    /**
     * ID
     */
    @Schema(description = "ID")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;
    /**
     * 工程ID
     */
    @NotNull
    @Schema(description = "文件ID")
    private Long sourceId;
    /**
     * 行号
     */
    @Schema(description = "行号")
    private Integer rowNo;
    /**
     * 行级数据
     */
    @Size(max = 65535)
    @Schema(description = "行级数据")
    private String content;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSourceId() {
        return sourceId;
    }

    public void setSourceId(Long sourceId) {
        this.sourceId = sourceId;
    }

    public Integer getRowNo() {
        return rowNo;
    }

    public void setRowNo(Integer rowNo) {
        this.rowNo = rowNo;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "ExcelRow{" +
                "id=" + id +
                ", sourceId=" + sourceId +
                ", rowNo=" + rowNo +
                ", content='" + content + '\'' +
                '}';
    }
}
